import React from 'react';
import {Switch, Route,Link} from 'react-router-dom';
import { Layout ,Menu,Icon} from 'antd';

const { Header, Content, Footer, Sider } = Layout;
import List from './list.js';
import Item from './item.js'
import Create from './create.js'
const Plan = ({ match }) => (
	<div>
		<div>
			<Link to={match.url}>首页</Link>
			<Link to={`${match.url}/item`}>计划表</Link>
			<Link to={`${match.url}/create`}>添加计划表</Link>
		</div>
		<div> 
			<Route exact path={match.url} component={List}/>
			<Route path={`${match.url}/item`} component={Item}/>
			<Route path={`${match.url}/create`} component={Create}/>
		</div>
	</div>
)

export default Plan